<layout name='Layout/public' />

{:W('PageHeader',array('name'=>'控制台'))}

<div class="row">
    <div class="col-xs-12">
        <!-- PAGE CONTENT BEGINS -->

        <div class="alert alert-block alert-success">
            <button type="button" class="close" data-dismiss="alert">
                <i class="ace-icon fa fa-times"></i>
            </button>
            <i class="ace-icon fa fa-check green"></i>
            欢迎进入云狐后台管理系统， 当前版本号：{:C('version')} 
        </div>

        <div class="row">
            <div class="space-6"></div>

            <div class="col-sm-12 infobox-container">
                <!-- #section:pages/dashboard.infobox -->
                <div class="infobox infobox-blue">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-male"></i>
                    </div>
                    <div class="infobox-data">
                        <span class="infobox-data-number">{$count.user_all}</span>
                        <div class="infobox-content">会员总数</div>
                    </div>       
                </div>

                <div class="infobox infobox-blue">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-male"></i>
                    </div>
                    <div class="infobox-data">
                        <span class="infobox-data-number">{:getCount('user',"status=1 and wrlogin!=0 and add_time > ".$time['today'])}</span>
                        <div class="infobox-content">今天新增</div>
                    </div>       
                </div>

                <div class="infobox infobox-blue">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-male"></i>
                    </div>
                    <div class="infobox-data">
                        <span class="infobox-data-number">{$count.user_yesterday}</span>
                        <div class="infobox-content">昨天新增</div>
                    </div>       
                </div>

                <div class="infobox infobox-blue">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-male"></i>
                    </div>
                    <div class="infobox-data">
                        <span class="infobox-data-number">{$count.user_monday}</span>
                        <div class="infobox-content">30天内新增</div>
                    </div>       
                </div>


                <div class="infobox infobox-green">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-vimeo-square"></i>
                    </div>
                    <div class="infobox-data">
                        <span class="infobox-data-number">{$count.task_all}</span>
                        <div class="infobox-content">运动总数</div>
                    </div>       
                </div>
                <div class="infobox infobox-green">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-vimeo-square"></i>
                    </div>
                    <div class="infobox-data">
                        <span class="infobox-data-number">{:getCount('sports_task',"add_time > ".$time['today'])}</span>
                        <div class="infobox-content">今天运动</div>
                    </div>       
                </div>
                <div class="infobox infobox-green">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-vimeo-square"></i>
                    </div>
                    <div class="infobox-data">
                        <span class="infobox-data-number">{$count.task_yesterday}</span>
                        <div class="infobox-content">昨天运动</div>
                    </div>       
                </div>
                <div class="infobox infobox-green">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-vimeo-square"></i>
                    </div>
                    <div class="infobox-data">
                        <span class="infobox-data-number">{$count.task_monday}</span>
                        <div class="infobox-content">本月运动</div>
                    </div>       
                </div>

                <div class="infobox infobox-red">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-camera"></i>
                    </div>
                    <div class="infobox-data">
                        <span class="infobox-data-number">{$count.find_all}</span>
                        <div class="infobox-content">发现总数</div>
                    </div>       
                </div>

                <div class="infobox infobox-red">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-camera"></i>
                    </div>
                    <div class="infobox-data">
                        <span class="infobox-data-number">{:getCount('sports_find',"state=1 and inputtime >".$time['today'])}</span>
                        <div class="infobox-content">今天发现总数</div>
                    </div>       
                </div>

                <div class="infobox infobox-red">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-camera"></i>
                    </div>
                    <div class="infobox-data">
                        <span class="infobox-data-number">{$count.find_yesterday}</span>
                        <div class="infobox-content">昨天发现总数</div>
                    </div>       
                </div>

                <div class="infobox infobox-red">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-camera"></i>
                    </div>
                    <div class="infobox-data">
                        <span class="infobox-data-number">{$count.find_monday}</span>
                        <div class="infobox-content">本月发现总数</div>
                    </div>       
                </div>



                <div class="infobox infobox-pink">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-male"></i>
                    </div>

                    <div class="infobox-data">
                        <span class="infobox-data-number">{:getCount('user',"status=1 and wrlogin!=0 and add_time < ".$time['today']." and last_time>".$time['today'])}</span>
                        <div class="infobox-content">今日老会员登陆数</div>
                    </div>
                    
                </div>

                <div class="infobox infobox-pink">
                    <div class="infobox-icon">
                        <i class="ace-icon fa fa-male"></i>
                    </div>

                    <div class="infobox-data">
                        <span class="infobox-data-number">{$count.user_login_monday}</span>
                        <div class="infobox-content">本月老会员登陆数</div>
                    </div>
                </div>

                <div class="infobox infobox-red">
                    <div class="infobox-progress">
                        <!-- #section:pages/dashboard.infobox.easypiechart -->
                        <div class="easy-pie-chart percentage" data-percent="{$count['mem'][0]}" data-size="46">
                            <span class="percent">{$count['mem'][0]}</span>%
                        </div>

                        <!-- /section:pages/dashboard.infobox.easypiechart -->
                    </div>

                    <div class="infobox-data">
                        <span class="infobox-text">内存空间</span>

                        <div class="infobox-content">
                            <span class="bigger-110">~</span>
                            {$count['mem'][3]}MB Free
                        </div>
                    </div>
                </div>

                <div class="infobox infobox-blue2">
                    <div class="infobox-progress">
                        <!-- #section:pages/dashboard.infobox.easypiechart -->
                        <div class="easy-pie-chart percentage" data-percent="{$count['disk'][3]}" data-size="46">
                            <span class="percent">{$count['disk'][3]}</span>%
                        </div>

                        <!-- /section:pages/dashboard.infobox.easypiechart -->
                    </div>

                    <div class="infobox-data">
                        <span class="infobox-text">硬盘空间</span>

                        <div class="infobox-content">
                            <span class="bigger-110">~</span>
                            {$count['disk'][2]} Free
                        </div>
                    </div>
                </div>

                <!-- /section:pages/dashboard.infobox -->

            </div>


        </div><!-- /.row -->
        <!-- PAGE CONTENT ENDS -->
    </div><!-- /.col -->
</div><!-- /.row -->
